package com.easy.domain;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import java.io.Serializable;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

/**
 * @author 风亦未止
 * @date 2021/10/5 15:14
 */
@ApiModel(value = "com-easy-domain-NoteLike")
@Data
@AllArgsConstructor
@NoArgsConstructor
@TableName(value = "note_like")
public class NoteLike implements Serializable {
    @TableId(value = "id", type = IdType.INPUT)
    @ApiModelProperty(value = "")
    private Long id;

    /**
     * 小纸条id
     */
    @TableField(value = "note_id")
    @ApiModelProperty(value = "小纸条id")
    private Long noteId;

    /**
     * 喜欢的用户的openid
     */
    @TableField(value = "openid")
    @ApiModelProperty(value = "喜欢的用户的openid")
    private String openid;

    /**
     * 用户昵名
     */
    @TableField(value = "nick_name")
    @ApiModelProperty(value = "用户昵名")
    private String nickName;

    private static final long serialVersionUID = 1L;

    public static final String COL_ID = "id";

    public static final String COL_NOTE_ID = "note_id";

    public static final String COL_OPENID = "openid";

    public static final String COL_NICK_NAME = "nick_name";
}